<template>
    <div class="goods-list" >
        <goods-item v-for="(item,key) in goodsList" :key="key" :goodsItem='item'></goods-item>
    </div>
</template>

<script>
    import goodsItem from './goodsItem.vue'

    export default {
        components: {
            goodsItem
        },
        props:{
            goodsList:{
                type:Array,
                default(){
                    return []
                }
            }
        },
        methods:{

        }
    }
</script>

<style scoped>
    .goods-list{
        display: flex;
        flex-flow:row wrap;
        justify-content:space-evenly;
    }
</style>